package com.ruoyi.business.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.Notice;
import com.ruoyi.business.domain.TCourseResource;
import com.ruoyi.business.domain.bo.TCourseResourceBo;
import com.ruoyi.business.domain.vo.TCourseResourceVo;

/**
 * CourseResourceService接口
 * 
 * @author 最爱喝兽奶
 * @date 2024-03-20
 */
public interface ITCourseResourceService extends IService<TCourseResource>
{
    /**
     * 查询CourseResource
     * 
     * @param id CourseResource主键
     * @return CourseResource
     */
    public TCourseResource selectTCourseResourceById(Long id);

    /**
     * 查询CourseResource列表
     * 
     * @param tCourseResource CourseResource
     * @return CourseResource集合
     */
    public List<TCourseResourceVo> selectTCourseResourceList(TCourseResourceBo tCourseResource);

    /**
     * 新增CourseResource
     * 
     * @param tCourseResource CourseResource
     * @return 结果
     */
    public int insertTCourseResource(TCourseResource tCourseResource);

    /**
     * 修改CourseResource
     * 
     * @param tCourseResource CourseResource
     * @return 结果
     */
    public int updateTCourseResource(TCourseResource tCourseResource);

    /**
     * 批量删除CourseResource
     * 
     * @param ids 需要删除的CourseResource主键集合
     * @return 结果
     */
    public int deleteTCourseResourceByIds(Long[] ids);

    /**
     * 删除CourseResource信息
     * 
     * @param id CourseResource主键
     * @return 结果
     */
    public int deleteTCourseResourceById(Long id);

    public void addDownloadNum(Long id);
}
